package com.yudi.blog.bussiness.service;

import com.yudi.blog.bussiness.dto.Tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * @Author YuDi
 * @Date 2021/11/10 21:19
 * @Version 1.0
 */

public interface TagService {
    Tag saveTag(Tag tag);

    void deleteTag(Long id);

    Tag getTag(Long id);

    Tag updateTag(Long id, Tag tag);

    Page<Tag> listTag(Pageable pageable);

    List<Tag> listTag();

    List<Tag> listTag(String ids);

    List<Tag> listTagTop(Integer size);
}
